package com.sugon.entity.dto;

import cn.hutool.core.collection.CollectionUtil;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * 设备-模具故障时长分析VO
 *
 * @author YuXD
 * @since 2022-05-11
 */
@Data
public class DevMoldFaultDurationAnalyseVO implements Serializable {

    /**
     * 类别
     */
    private String name;

    /**
     * 数据值：包含四个值
     * index 起始毫秒数  结束毫秒数 时长
     */
    private List<Long> value;

    public DevMoldFaultDurationAnalyseVO(String name, Long index, Long start, Long end, Long duration) {
        this.name = name;
        value = CollectionUtil.newArrayList(index,start,end,duration);
    }

}
